package com.basis.utils.excel;

public class ExcelHead {
	private String text;
	private int rowSpan = 1;
	private int colSpan = 1;
	private int width = 0;

	public ExcelHead(String text) {
		this.text = text;
	}
	public ExcelHead(String text, int rowSpan, int colSpan) {
		this.text = text;
		this.rowSpan = rowSpan;
		this.colSpan = colSpan;
	}
	
	public String getText() {
		return text;
	}
	public void setText(String text) {
		this.text = text;
	}
	public int getRowSpan() {
		return rowSpan < 1 ? 1 : rowSpan;
	}
	public void setRowSpan(int rowSpan) {
		this.rowSpan = rowSpan;
	}
	public int getColSpan() {
		return colSpan < 1 ? 1 : colSpan;
	}
	public void setColSpan(int colSpan) {
		this.colSpan = colSpan;
	}
	public int getWidth() {
		return width;
	}
	public void setWidth(int width) {
		this.width = width;
	}
}